import request from '@/utils/request'

export function login(params) {
  return request({
    url: '/platform/user/login',
    method: 'get',
    params
  })
}

export function getInfo(token) {
  return request({
    url: '/user/info',
    method: 'get',
    params: { token }
  })
}

export function logout() {
  return request({
    url: '/platform/user/logout',
    method: 'get'
  })
}

export function sellerSearch(params) { // 获取商家列表
  return request({
    url: '/platform/seller/search',
    method: 'get',
    params
  })
}

export function sellerUpdate(params) { // 更新商家
  return request({
    url: '/platform/seller/update',
    method: 'get',
    params
  })
}

export function operateLogSearch(params) { // 获取操作日志
  return request({
    url: '/platform/operateLog/search',
    method: 'get',
    params
  })
}

export function buyerTaobaoSearch(params) { // 淘宝号列表
  return request({
    url: '/platform/buyerTaobao/search',
    method: 'get',
    params
  })
}

export function buyerTaobaoExamine(params) { // 审核淘宝号
  return request({
    url: '/platform/buyerTaobao/examine',
    method: 'get',
    params
  })
}

export function buyerSearch(params) { // 买手列表
  return request({
    url: '/platform/buyer/search',
    method: 'get',
    params
  })
}

export function buyerUpdate(params) { // 更新买手
  return request({
    url: '/platform/buyer/update',
    method: 'get',
    params
  })
}

export function getBuyerAffiche(params) { // 查询买手公告
  return request({
    url: '/platform/config/getBuyerAffiche',
    method: 'get',
    params
  })
}

export function getSellerAffiche(params) { // 查询商家公告
  return request({
    url: '/platform/config/getSellerAffiche',
    method: 'get',
    params
  })
}

export function updateBuyerAffiche(params) { // 修改买手公告
  return request({
    url: '/platform/config/updateBuyerAffiche',
    method: 'get',
    params
  })
}

export function updateSellerAffiche(params) { // 修改商家公告
  return request({
    url: '/platform/config/updateSellerAffiche',
    method: 'get',
    params
  })
}

export function appealSearch(params) { // 商家申诉
  return request({
    url: '/platform/appeal/search',
    method: 'get',
    params
  })
}

export function sellerShopSearch(params) { // 店铺列表
  return request({
    url: '/platform/sellerShop/search',
    method: 'get',
    params
  })
}

export function sellerShopExamine(params) { // 审核店铺
  return request({
    url: '/platform/sellerShop/examine',
    method: 'get',
    params
  })
}

export function sellerBankCardSearch(params) { // 银行卡列表
  return request({
    url: '/platform/sellerBankCard/search',
    method: 'get',
    params
  })
}

export function sellerBankCardExamine(params) { // 银行卡审核
  return request({
    url: '/platform/sellerBankCard/examine',
    method: 'get',
    params
  })
}

export function platformTransactionLog(params) { // 平台交易明细
  return request({
    url: '/platform/platformTransactionLog/search',
    method: 'get',
    params
  })
}

export function buyerTransactionLog(params) { // 买手交易明细
  return request({
    url: '/platform/buyerTransactionLog/search',
    method: 'get',
    params
  })
}

export function sellerTransactionLog(params) { // 商家交易明细
  return request({
    url: '/platform/sellerTransactionLog/search',
    method: 'get',
    params
  })
}

export function buyerWithdrawSearch(params) { // 买手提现列表
  return request({
    url: '/platform/buyerWithdraw/search',
    method: 'get',
    params
  })
}

export function buyerWithdrawExamine(params) { // 买手提现审核
  return request({
    url: '/platform/buyerWithdraw/examine',
    method: 'get',
    params
  })
}

export function sellerWithdrawSearch(params) { // 商家提现审核
  return request({
    url: '/platform/sellerWithdraw/search',
    method: 'get',
    params
  })
}

export function sellerWithdrawExamine(params) { // 商家提现审核
  return request({
    url: '/platform/sellerWithdraw/examine',
    method: 'get',
    params
  })
}

export function feedbackSearch(params) { // 用户反馈
  return request({
    url: '/platform/feedback/search',
    method: 'get',
    params
  })
}

export function memberPackageGet(params) { // 获取单个会员套餐详情
  return request({
    url: '/platform/memberPackage/get',
    method: 'get',
    params
  })
}

export function memberPackageSearch(params) { // 获取会员套餐列表
  return request({
    url: '/platform/memberPackage/search',
    method: 'get',
    params
  })
}

export function memberPackageSave(params) { // 创建会员套餐
  return request({
    url: '/platform/memberPackage/save',
    method: 'get',
    params
  })
}

export function memberPackageDelete(params) { // 删除会员套餐
  return request({
    url: '/platform/memberPackage/delete',
    method: 'get',
    params
  })
}

export function memberPackageUpdate(params) { // 更新会员套餐
  return request({
    url: '/platform/memberPackage/update',
    method: 'get',
    params
  })
}

export function buyerBankCardSearch(params) { // 买手银行卡列表
  return request({
    url: '/platform/buyerBankCard/search',
    method: 'get',
    params
  })
}

export function buyerBankCardExamine(params) { // 买手银行卡审核
  return request({
    url: '/platform/buyerBankCard/examine',
    method: 'get',
    params
  })
}

export function buyerCredentialsSearch(params) { // 买手身份证列表
  return request({
    url: '/platform/buyerCredentials/search',
    method: 'get',
    params
  })
}

export function buyerCredentialsExamine(params) { // 买手身份证审核
  return request({
    url: '/platform/buyerCredentials/examine',
    method: 'get',
    params
  })
}

export function sellerMissionSearch(params) { // 商家任务列表
  return request({
    url: '/platform/sellerMission/search',
    method: 'get',
    params
  })
}

export function sellerMissionDelete(params) { // 删除商家任务
  return request({
    url: '/platform/sellerMission/delete',
    method: 'get',
    params
  })
}

export function buyerMissionSearch(params) { // 买手任务列表
  return request({
    url: '/platform/buyerMission/search',
    method: 'get',
    params
  })
}

export function buyerMissionDelete(params) { // 删除买手任务
  return request({
    url: '/platform/buyerMission/delete',
    method: 'get',
    params
  })
}

export function normalAdminSearch(params) { // 管理员列表
  return request({
    url: '/platform/normalAdmin/search',
    method: 'get',
    params
  })
}

export function normalAdminSave(params) { // 创建管理员
  return request({
    url: '/platform/normalAdmin/save',
    method: 'get',
    params
  })
}

export function normalAdminUpdate(params) { // 更新管理员
  return request({
    url: '/platform/normalAdmin/update',
    method: 'get',
    params
  })
}

export function getBuyerRegisterAllowed(params) { // 是否开放买手注册
  return request({
    url: '/platform/config/getBuyerRegisterAllowed',
    method: 'get',
    params
  })
}

export function getNoviceTeaching(params) { // 获取新手教学H5地址
  return request({
    url: '/platform/config/getNoviceTeaching',
    method: 'get',
    params
  })
}

export function updateBuyerRegisterAllowed(params) { // 修改是否开放买手注册
  return request({
    url: '/platform/config/updateBuyerRegisterAllowed',
    method: 'get',
    params
  })
}

export function updateNoviceTeaching(params) { // 修改教学地址
  return request({
    url: '/platform/config/updateNoviceTeaching',
    method: 'get',
    params
  })
}

export function getAutoExamineInterval(params) { // 自动审核间隔
  return request({
    url: '/platform/config/getAutoExamineInterval',
    method: 'get',
    params
  })
}

export function updateAutoExamineInterval(params) { // 修改自动审核间隔
  return request({
    url: '/platform/config/updateAutoExamineInterval',
    method: 'get',
    params
  })
}

export function getShoppingLabel(params) { // 查询购物标签
  return request({
    url: '/platform/config/getShoppingLabel',
    method: 'get',
    params
  })
}

export function updateShoppingLabel(params) { // 修改购物标签
  return request({
    url: '/platform/config/updateShoppingLabel',
    method: 'get',
    params
  })
}

export function carouselSearch(params) { // 获取轮播图列表
  return request({
    url: '/platform/carousel/search',
    method: 'get',
    params
  })
}

export function carouselGet(params) { // 获取单个轮播图
  return request({
    url: '/platform/carousel/get',
    method: 'get',
    params
  })
}

export function carouselDelete(params) { // 删除单个轮播图
  return request({
    url: '/platform/carousel/delete',
    method: 'get',
    params
  })
}

export function carouselSave(params) { // 添加轮播图
  return request({
    url: '/platform/carousel/save',
    method: 'get',
    params
  })
}

export function transactionSellerToBuyer(params) { // 商家转账给买手
  return request({
    url: '/platform/fund/transactionSellerToBuyer',
    method: 'get',
    params
  })
}

export function transactionBuyerToSeller(params) { // 买手转账给商家
  return request({
    url: '/platform/fund/transactionBuyerToSeller',
    method: 'get',
    params
  })
}

export function transferSearch(params) { // 转账列表
  return request({
    url: '/platform/transfer/search',
    method: 'get',
    params
  })
}

export function transferExamine(params) { // 转账审核
  return request({
    url: '/platform/transfer/examine',
    method: 'get',
    params
  })
}

export function buyerMissionExamine(params) { // 审核买手任务
  return request({
    url: '/platform/buyerMission/examine',
    method: 'get',
    params
  })
}

export function getBankAccount(params) { // 平台银行卡获取
  return request({
    url: '/platform/config/getBankAccount',
    method: 'get',
    params
  })
}

export function updateBankAccount(params) { // 修改平台银行卡
  return request({
    url: '/platform/config/updateBankAccount',
    method: 'get',
    params
  })
}

export function getCustomerService(params) { // 获取客服H5url
  return request({
    url: '/platform/config/getCustomerService',
    method: 'get',
    params
  })
}

export function updateCustomerService(params) { // 修改客服H5url
  return request({
    url: '/platform/config/updateCustomerService',
    method: 'get',
    params
  })
}

export function sellerLogin(params) { // 登录商家
  return request({
    url: '/platform/seller/login',
    method: 'get',
    params
  })
}

export function updateOrderNumber(params) { // 修改买手订单号
  return request({
    url: '/seller/buyerMission/updateOrderNumber',
    method: 'get',
    params
  })
}

export function getAppVersion(params) { // 修改买手订单号
  return request({
    url: '/platform/config/getAppVersion',
    method: 'get',
    params
  })
}

export function updateAppVersion(params) { // 修改客户端版本号
  return request({
    url: '/platform/config/updateAppVersion',
    method: 'get',
    params
  })
}
